// 排课相关
import request from "@/utils/request";
// 新建排课
export function saveScheduleAPI(data) {
  return request({
    url: "/tCourseOrder/save",
    method: "post",
    data: data,
  });
}

// 编辑排课
export function updateScheduleAPI(data) {
  return request({
    url: "/tCourseOrder/update",
    method: "post",
    data: data,
  });
}

// 排课列表
export function getScheduleListAPI(data) {
  return request({
    url: "/tCourseOrder/list",
    method: "get",
    params: data,
  });
}

// 查询单个排班详情
export function getScheduleDetailAPI(data) {
  return request({
    url: "/tCourseOrder/getById",
    method: "post",
    data: data,
  });
}

// 删除排班
export function deleteScheduleAPI(data) {
  return request({
    url: "/tCourseOrder/delete",
    method: "post",
    data: data,
  });
}
